<?php
	include "../../public/commom/config.php";
	include "../lock1.php";	
	
	if($_POST) {
		$code = $_POST["code"];
		$sid = $_POST["status_id"];
	
		$sql = "UPDATE indent SET status_id = '$sid' WHERE code = $code";
			
		$result = mysqli_query($conn, $sql);
		
		mysqli_close($conn);
			
		header("Location: ./index.php");
		
	}
?>